﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace Future.FormBase
{
    public interface IToolbarRegister : IDisposable
    {
        void RegisterButton(IList buttons);//注册按钮
        
        /// <summary>
        /// 创建工具栏上的按钮.
        /// </summary>
        /// <param name="name">按钮名称:如btnSave,btnClose</param>
        /// <param name="caption">按钮名称</param>
        /// <param name="image">按钮图片</param>
        /// <param name="size">按钮大小</param>
        /// <param name="clickEvent">按钮的Click事件</param>
        /// <returns></returns>
        IButtonInfo CreateButton(string name, string caption, Bitmap image, Size size, OnButtonClick clickEvent);
        IButtonInfo CreateButton(string name, string caption, Bitmap image, Size size, OnButtonClick clickEvent, bool group);
    }
}
